import request from '@/utils/request'

export function getInvoiceList(params) {
  return request({
    url: '/ops/invoice/list',
    method: 'get',
    params
  })
}

export function getInvoiceInstall(tenantId) {
  return request({
    url: '/ops/setUpInvoice/get',
    method: 'get',
    params: { tenantId: tenantId }
  })
}

export function saveInvoiceInstall(data) {
  return request({
    url: '/ops/setUpInvoice/update',
    method: 'post',
    data
  })
}
